package com.github.base.dto.auth;

import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 登陆DTO
 * @author: hui.zhang
 * @date: 2021/1/29 10:10 上午
 **/

@Data
public class LoginDTO implements Serializable {


    @NotBlank(message = "账号不能为空")
    @Schema(description = "用户名")
    private String username;

    @NotBlank(message = "密码不能为空")
    @Schema(description = "密码")
    private String password;
}
